package Thread;

public class SellTicketDemo {
    public static void main(String[] args) {
        // 相同票出现了
       RunnableDemo r1 = new RunnableDemo();
        Thread t1 = new Thread(r1,"window1");
        Thread t2 = new Thread(r1,"window2");
        Thread t3 = new Thread(r1,"window3");

        t1.start();
        t2.start();
        t3.start();
    }
}
